<!DOCTYPE html>
<html>
<#include "../../head.html">
    <body>
    <table class="mc">
        <tr>
            <td class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "../left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </td>
            <td class="mc-m">
                <div class="navToggle"></div>
            </td>
            <td class="mc-r">
                <!--顶部导航---{-->
                <#include "../../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="会员积分管理">
                        <#include "../banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
                                <form action="" method="post">
                                <!-- v1.6.7.2 RDPROJECT-509 zza 2013-12-12 start -->
                                <div class="toolbor-module export">
				                    <input type="button" onclick="exportxls()" value="导出报表" class="input-button export-btn"/>
				                </div>
				                <!-- v1.6.7.2 RDPROJECT-509 zza 2013-12-12 end -->
                                <div class="toolbor-module search">   
				   					<input type="text" name="username" id="username" value="请输入用户名" class="search-value">
                                   	<input type="button" value="搜索"  class="input-button" onClick="sousuo();">
                                </div>
                                <!--<div class="toolbor-module search">
                                   <input type="text" name="username" id="username" value="请输入用户名" data-value="请输入用户名" class="search-value">
                                </div>-->
                                
                                </form>
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                 <!--  V1.6.6.2 zhangyz 2013-10-29 start -->
                                <table class="data-list">
                                        <tr class="header">
                                        	<td>ID</td>
                                        	<td>会员</td>
                                        	<td>综合积分</td>
                                        	<td>消费积分</td>
                                        	<td>有效积分</td>
											<td>添加时间</td>
											<td>投资积分</td>
											<td>借款积分</td>
											<td>赠送积分</td>
											<td>论坛积分</td>
											<td>操作</td>
                                        </tr>
                                    	<#list list as item>
                                        <tr class="s">
                                        	<td>${item.user_id?c}</td>
                                        	<td>${item.userName}</td>
											<td><font color='#FF0000'>${item.value!0}</font></td>
											<td><font color='#FF0000'>${item.expense_value!0}</font></td>
											<td><font color='#FF0000'>${item.valid_value!0}</font></td>
											<td>${dateformat(item.addtime?c)}</td>
											<td>${item.tender_value!0}</td>
											<td>${item.borrow_value!0}</td>
											<td>${item.gift_value!0}</td>	
											<td>${item.bbs_value!0}</td>
											<td><a href="${request.getContextPath()}/admin/credit/editCreditInit.html?user_id=${item.user_id?c}">修改</a>&nbsp;&nbsp;
											<a href="${request.getContextPath()}/admin/credit/showUserCreditLog.html?user_id=${item.user_id?c}">查看明细</a>
											&nbsp;&nbsp;<a href="${request.getContextPath()}/admin/credit/editBbsInit.html?user_id=${item.user_id?c}">论坛积分修改</a></td>
                                        </tr>
                                     	</#list>
                                    </table>
 								<!--  V1.6.6.2 zhangyz 2013-10-29 end -->
                                <!--底部工具栏--{-->
                                <div id="bottomToolbar" class="clearfix">
                                    <div class="other-tool">
                                        <dl class="refresh-data">
                                            <dt class="refresh-data-icon"></dt>
                                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                        </dl>
                                    </div>

                                    <!--翻页系统--{-->
                                    <div class="container">
                                        <#import "../../../common/page.html" as pager>
                                            <@pager.pagination page=page url="/admin/credit/showUserCredit.html" map=param style="style1" />
                                    </div>
                                    <!--翻页系统--}-->
                                    		<script type="text/javascript">
												var url = 'showUserCredit.html?search=true';
                                    			// v1.6.7.2 RDPROJECT-509 zza 2013-12-12 start
							                    var xlsurl = 'showUserCredit.html?type=export';
							                	// v1.6.7.2 RDPROJECT-509 zza 2013-12-12 end
												function sousuo(){
													var sou = "";
													var username = $("#username").val();
													if (username!=""&&username!="请输入用户名"){
														sou += "&username="+username;
													}
													if(sou!=""){
														location.href=url+sou;
													}
											  	 }
												// v1.6.7.2 RDPROJECT-509 zza 2013-12-12 start
												function exportxls(){
													var sou = "";
													var username = $("#username").val();
													if (username!=""&&username!="请输入用户名"){
														sou += "&username="+username;
													}
													if (sou!=""){
							                            location.href=xlsurl+sou;
							                        }else{
							                            location.href=xlsurl;
							                        }
							                    }
												// v1.6.7.2 RDPROJECT-509 zza 2013-12-12 end
											</script>
                                </div>
                                <!--底部工具栏--}-->
                            </div>

            </td>
        </tr>
        <tr>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../../foot.html"></td>
            <!--尾部--}-->
        </tr>
    </table>
	
    </body>
</html>
<#include "../../jsPage.html">